"use strict";
cc._RF.push(module, 'e34d3ql+gdNx6ohZ+1yfRFf', 'MoreGameBtnView');
// src/MoreGameBtnView.js

"use strict";

var n = module.exports = {};
var t = module;
console.assert(true), cc.Class({
  "extends": cc.Component,
  properties: {
    moreGameSprite: cc.Sprite
  },
  onLoad: function onLoad() {
    this.timer = 0, this.count = 0, this.len = G.WECHAT.appIdList.length;
  },
  start: function start() {
    this.node.runAction(cc.repeatForever(cc.sequence(cc.rotateTo(.9, 15), cc.rotateTo(.9, -15)))), this.moreGameSprite.spriteFrame = G.WECHAT.moreGameIconList[this.count % this.len];
  },
  update: function update(e) {
    0 !== this.len && (this.timer += e, this.timer > 3 && (this.timer = 0, this.count++, this.moreGameSprite.spriteFrame = G.WECHAT.moreGameIconList[this.count % this.len]));
  },
  toMore: function toMore() {
    G.AudioManager.play_btn();
    var e = G.WECHAT.appIdList[this.count % this.len];
    G.WECHAT.navigateToMiniProgram(e);
  }
});

cc._RF.pop();